#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

class QRadioButton;
class QSpinBox;
class Scene;
class QGraphicsItem;
class QUndoStack;
class QUndoView;

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    Ui::MainWindow *ui;

    QRadioButton *boxRadio;
    QRadioButton *circleRadio;
    QSpinBox *sizeSpin;

    Scene *scene;

    QUndoStack *undoStack;
    QUndoView *undoView;

    QAction *undoAction;
    QAction *redoAction;

public slots:
    void addItem(QPointF);
    void deleteItem();
    void itemMoved(QList<QGraphicsItem *>, QList<QPointF>);
};

#endif // MAINWINDOW_H
